package com.kun.portal.webframe.dao;

import com.kun.portal.webframe.po.MessagePushPo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2018-09-10.
 *
 * 消息推送
 */
@Repository
public interface MessagePushDao extends JpaRepository<MessagePushPo,String>,
        JpaSpecificationExecutor<MessagePushPo> {
    @Query(" select count(t) from MessagePushPo t where handle = :handle and moduleType= :mgType")
    public Long findNotHandelMg(@Param("handle") Boolean handle,@Param("mgType")String mgType);
}
